package com.zhou.base.components.bs.common.properties;

import com.google.common.collect.Lists;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

import java.util.List;

@RefreshScope
@Data
@ConfigurationProperties(prefix = "common.pub")
public class CommonProperties {

    private Boolean printExceptionDetail = true;

    /**
     * cors:
     * allowedOrigins: www.baidu.com,www.szzz.com
     */
    private List<String> corsAllowedOrigins = Lists.newArrayList("*");


    private String datePatter = "yyyy-MM-dd";

    private String dateTimePattern = "yyyy-MM-dd HH:mm:ss";

}
